package com.gfm.story.entity.story;

import com.baomidou.mybatisplus.annotations.TableName;
import com.gfm.story.entity.base.BaseBean;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @BelongsProject: story
 * @BelongsPackage: com.gfm.story.entity.story
 * @Author: Administrator
 * @CreateTime: 2019-06-03 15:20
 * @Description: ${Description}
 */
@Entity(name = "book")
@Table(name = "book")
@TableName(value = "book")
@Data
public class Book extends BaseBean<Book> {

    private String author;
    private String description;
    private String name;
    private String status;
    private String url;
    private String imgUrl;
    private Long categoryId;
    private Integer collectionCount;//收藏总数

    @Transient
    private String categoryName;

}
